<link rel="stylesheet" href="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/css/jquery-ui-1.10.3.css" />
<script src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/js/jquery-ui-1.10.3.js"></script>
<script>
    $(function() {
        $("#tabs").tabs();
    });
</script>
<form class="form-horizontal" action="<?= current_url() ?>" method="post" id="form-validate" enctype="multipart/form-data" >
    <div id="validation" class="row-fluid">
        <div class="span12">
            <div class="box corner-all">
                <div class="box-header grd-white color-silver-dark corner-top">
                    <div class="header-control">
                        <a data-box="collapse"><i class="icofont-caret-up"></i></a>

                    </div>
                    <span><?= lang('label_menu_link_add') . ' ' . lang('label_menu_link_shiping'); ?></span>
                </div>
                <div class="box-body">

                    <fieldset>

                        <div id="tabs">
                            <ul>
                                <?php foreach ($language as $la) { ?>
                                    <li><a href="#<?= $la->code ?>"><img src="<?= str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?= APPPATH ?>views/admin/images/<?= $la->code ?>.png" alt=""></a>
                                    <?php } ?>
                            </ul>
                            <?php foreach ($language as $la) { ?>
                                <div class="control-group" id="<?= $la->code ?>">
                                    <label class="control-label" for="title_<?= $la->code ?>"><?= lang('label_name') ?></label>
                                    <div class="controls">
                                        <input class="grd-white" name="title_<?= $la->code ?>" id="title_<?= $la->code ?>" placeholder="<?= lang('label_name') ?>" value="<?= form_val("title_$la->code") ?>" type="text" />
                                    </div>
                                </div>
                            <?php } ?>
                        </div>
                        <div style="margin: 15px" ></div>
                        
                        <div class="control-group">
                            <label class="control-label" for="maxweight"><?= lang('label_shiping_max_weight') ?></label>
                            <div class="controls">
                                <input class="grd-white" name="maxweight" id="maxweight" placeholder="<?= lang('label_shiping_max_weight') ?>" type="number" />
                            </div>
                        </div>
                        
                        <div class="control-group">
                            <label class="control-label" for="price"><?= lang('label_shiping_under') ?></label>
                            <div class="controls">
                                <input class="grd-white" name="price" id="price" placeholder="<?= lang('label_shiping_under') ?>" type="number" />
                            </div>
                        </div>
                        
                        <div class="control-group">
                            <label class="control-label" for="priceover"><?= lang('label_shiping_for_unit') ?></label>
                            <div class="controls">
                                <input class="grd-white" name="priceover" id="priceover" placeholder="<?= lang('label_shiping_for_unit') ?>" type="number" />
                            </div>
                        </div>
                        
                        <div class="control-group">
                            <div class="controls">
                                <input class="grd-white" name="cashondelivery" id="cashondelivery" value="text" type="checkbox" ><label for='cashondelivery'><?= lang('label_cash_on_delivery') ?></label>
                            </div>
                        </div>
                        
                        <div class="control-group">
                            <label class="control-label" for="cashcost"><?= lang('label_cash_on_delivery_cost') ?></label>
                            <div class="controls">
                                <input class="grd-white" name="cashcost" id="cashcost" placeholder="<?= lang('label_cash_on_delivery_cost') ?>" type="number" />
                            </div>
                        </div>
                        
                        <div class="control-group">
                            <label class="control-label" for="code"><?= lang('label_menu_link_cities') ?></label>
                            <?php if(is_array($cities)){ ?>
                            <?php foreach ($cities as $city){ ?>
                            <div class="controls">
                                <input class="grd-white" name="city[]" id="<?= $city->id ?>" value="<?= $city->id ?>" type="checkbox" ><label for='<?= $city->id ?>'><?= $city->title ?></label>
                            </div>
                            <?php } ?>
                            <?php } ?>
                        </div>
                        
                        <div class="form-actions">
                            <button type="submit" class="btn btn-primary"><li class="icon-plus" style="margin-left: 5px"></li><?= lang('label_add') ?></button>
                            <button type="button" class="btn">Cancel</button>
                        </div>
                    </fieldset>


                </div>
            </div>
        </div>
    </div>
</form>